package com.study.controller;

import com.study.mvc.annotation.ActionMapping;
import com.study.mvc.annotation.ResponseType;
import org.springframework.stereotype.Component;

@Component
@ActionMapping(actionKey="controller")
@ResponseType
public class HttpNettyController implements BaseActionController{

    @ActionMapping(actionKey = "method")
    public String method(String a, String b){

        return String.format("a:%s,b:%s",a,b);
    }
    // 执行：http://127.0.0.1:1999/controller/method?a=1&b=2
}
